package com.zi.experttalk.experttalk.View;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
import com.zi.experttalk.experttalk.R;

/**
 * Created by Administrator on 2014/12/11.
 */
public class CouponDetailsActivity extends Activity {
    private Button coupon_details_back_bt;
    private TextView coupon_details_mName_textview;
    private TextView coupon_details_mAddress_textview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.coupon_details);

        coupon_details_back_bt=(Button)findViewById(R.id.coupon_details_back_bt);
        coupon_details_mName_textview=(TextView) findViewById(R.id.coupon_details_mName_textview);
        coupon_details_mAddress_textview=(TextView) findViewById(R.id.coupon_details_mAddress_textview);
        /*
        返回上一活动
         */
        coupon_details_back_bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        /*
        详情信息显示
         */
        Intent intent=getIntent();
        String mName=intent.getStringExtra("mName");
        String mAddress= intent.getStringExtra("mAddress");
        coupon_details_mName_textview.setText(mName);
        coupon_details_mAddress_textview.setText(mAddress);
    }
}
